package com.test;

public class BTree<T> {

    T data;

    private BTree<T> parent;

    private BTree<T> left;

    private BTree<T> right;

    public BTree(T data, BTree<T> parent) {
        this.data = data;
        this.parent = parent;
    }

    public BTree<T> getLeft() {
        return left;
    }

    public void setLeft(BTree<T> left) {
        this.left = left;
    }

    public BTree<T> getRight() {
        return right;
    }

    public void setRight(BTree<T> right) {
        this.right = right;
    }
}
